<!DOCTYPE html>
<html lang="zh">
<head th:replace="~{frag::head}"></head>
  
<body>
<div class="lyear-layout-web">
  <div class="lyear-layout-container">
    <!--左侧导航-->
	<aside th:replace="~{frag::sidebar}"></aside>
    <!--End 左侧导航-->
    
    <!--头部信息-->
    <header th:replace="~{frag::header}"></header>
    <!--End 头部信息-->
    
    <!--页面主要内容-->
    <main class="lyear-layout-content">
      
      <div class="container-fluid">

        <div class="row">
          
          <div class="col-lg-12">
            <div class="card">
              <div class="card-header">
                <h4>修改诊断项目信息</h4>
              </div>
                  <div class="card-body">
                      <form class="form-horizontal" action="/facility/update" method="post">
                        <div class="form-group">
                            <label class="col-md-2 control-label" for="serId">诊断项目编号</label>
                          <div class="col-md-4">
                            <input class="form-control" type="text" id="serId" name="serId" readonly th:value="${fac.serId}">
                          </div>
                            <label class="col-md-2 control-label" for="serName">项目名称</label>
                          <div class="col-md-4">
                            <input class="form-control" type="text" id="serName" name="serName" th:value="${fac.serName}">
                          </div>
                        </div>

                        <div class="form-group">
                            <label class="col-md-2 control-label" for="serStartTime">开始日期</label>
                          <div class="col-md-4">
                            <input class="form-control js-datepicker m-b-10" type="text" id="serStartTime" name="serStartTime" placeholder="yyyy-mm-dd" 
                            th:value="${fac.serStartTime}" data-date-format="yyyy-mm-dd" />
                          </div>
                            <label class="col-md-2 control-label" for="serEndTime">结束日期</label>
                          <div class="col-md-4">
                            <input class="form-control js-datepicker m-b-10" type="text" id="serEndTime" name="serEndTime" placeholder="yyyy-mm-dd" 
                            th:value="${fac.serEndTime}" data-date-format="yyyy-mm-dd" />                          
                          </div>
                    	</div>
                        
                        <div class="form-group">
							
                            <label class="col-md-2 control-label" for="serExpType">收费类别</label>
                          <div class="col-md-4"0>
                              <select class="form-control" id="serExpType" name="serExpType" size="1">
                                  <option value="">请选择收费类别</option>
                                  <option value="0" th:selected="${fac.serExpType == 0}">西药</option>
                                  <option value="1" th:selected="${fac.serExpType == 1}">中成药</option>
                                  <option value="2" th:selected="${fac.serExpType == 2}">中草药</option>
                                  <option value="3" th:selected="${fac.serExpType == 3}">床位费</option>
                                  <option value="4" th:selected="${fac.serExpType == 4}">化验费</option>
                                  <option value="5" th:selected="${fac.serExpType == 5}">诊查费</option>
                                  <option value="6" th:selected="${fac.serExpType == 6}">检查费</option>
                                  <option value="7" th:selected="${fac.serExpType == 7}">护理费</option>
                                  <option value="8" th:selected="${fac.serExpType == 8}">特检费</option>
                                  <option value="9" th:selected="${fac.serExpType == 9}">输氧费</option>
                                  <option value="10" th:selected="${fac.serExpType == 10}">治疗费</option>
                                  <option value="11" th:selected="${fac.serExpType == 11}">输血费</option>
                                  <option value="12" th:selected="${fac.serExpType == 12}">特治费</option>
                                  <option value="13" th:selected="${fac.serExpType == 13}">医疗服务费</option>
                                  <option value="14" th:selected="${fac.serExpType == 14}">手术费</option>
                                  <option value="15" th:selected="${fac.serExpType == 15}">麻药费</option>
                                  <option value="16" th:selected="${fac.serExpType == 16}">产前检查费</option>
                                  <option value="17" th:selected="${fac.serExpType == 17}">材料费</option>
                                  <option value="18" th:selected="${fac.serExpType == 18}">新生儿费</option>
                                  <option value="19" th:selected="${fac.serExpType == 19}">内置材料</option>
                                  <option value="20" th:selected="${fac.serExpType == 20}">其他费</option>
                                  <option value="21" th:selected="${fac.serExpType == 21}">监护床位费</option>
                                  <option value="22" th:selected="${fac.serExpType == 22}">非处方药</option>
                                  <option value="23" th:selected="${fac.serExpType == 23}">处方药</option>
                                  <option value="24" th:selected="${fac.serExpType == 24}">甲类</option>
                                  <option value="25" th:selected="${fac.serExpType == 25}">乙类</option>
                                  <option value="26" th:selected="${fac.serExpType == 26}">丙类</option>
                                  <option value="27" th:selected="${fac.serExpType == 27}">化验费</option>
                                  <option value="28" th:selected="${fac.serExpType == 28}">诊查费</option>
                                  <option value="29" th:selected="${fac.serExpType == 29}">检查费</option>
                                  <option value="30" th:selected="${fac.serExpType == 30}">护理费</option>
                                  <option value="31" th:selected="${fac.serExpType == 31}">特检费</option>
                                  <option value="32" th:selected="${fac.serExpType == 32}">输氧费</option>
                                  <option value="33" th:selected="${fac.serExpType == 33}">治疗费</option>
                                  <option value="34" th:selected="${fac.serExpType == 34}">输血费</option>
                                  <option value="35" th:selected="${fac.serExpType == 35}">特治费</option>
                                  <option value="36" th:selected="${fac.serExpType == 36}">医疗服务费</option>
                                  <option value="37" th:selected="${fac.serExpType == 37}">手术费</option>
                                  <option value="38" th:selected="${fac.serExpType == 38}">麻药费</option>
                                  <option value="39" th:selected="${fac.serExpType == 39}">产前检查费</option>
                                  <option value="40" th:selected="${fac.serExpType == 40}">材料费</option>
                                  <option value="41" th:selected="${fac.serExpType == 41}">新生儿费</option>
                                  <option value="42" th:selected="${fac.serExpType == 42}">内置材料</option>
                                  <option value="43" th:selected="${fac.serExpType == 43}">其他费</option>
                                  <option value="44" th:selected="${fac.serExpType == 44}">监护床位费</option>
                                </select>
                              </select>
                          </div>
						  
                            <label class="col-md-2 control-label" for="serValid">有效标志</label>
                          <div class="col-md-4"1>
                              <select class="form-control" id="serValid" name="serValid" size="1">
                                <option value="0" th:selected="${fac.serValid == 0}">无效</option>
                                <option value="1" th:selected="${fac.serValid == 1}">有效</option>
                              </select>
                          </div>
						</div>
                        <div class="form-group">
                          <div class="col-md-11 col-md-offset-1">
                            <button class="btn btn-primary" type="submit">修改</button>
                          </div>
                        </div>
                      </form>
                  </div>
              </div>
        </div>
      </div>
    </main>
    <!--End 页面主要内容-->
  </div>
</div>

<script type="text/javascript" src="/js/jquery.min.js"></script>
<script type="text/javascript" src="/js/bootstrap.min.js"></script>
<script type="text/javascript" src="/js/perfect-scrollbar.min.js"></script>
<script type="text/javascript" src="/js/main.min.js"></script>
<!--时间选择插件-->
<script src="/js/bootstrap-datetimepicker/moment.min.js"></script>
<script src="/js/bootstrap-datetimepicker/bootstrap-datetimepicker.min.js"></script>
<script src="/js/bootstrap-datetimepicker/locale/zh-cn.js"></script>
<!--日期选择插件-->
<script src="/js/bootstrap-datepicker/bootstrap-datepicker.min.js"></script>
<script src="/js/bootstrap-datepicker/locales/bootstrap-datepicker.zh-CN.min.js"></script>
<script type="text/javascript" src="/js/main.min.js"></script>
<!--图表插件-->
<script type="text/javascript" src="/js/Chart.js"></script>
<script type="text/javascript">
$(document).ready(function(e) {
    var $dashChartBarsCnt  = jQuery( '.js-chartjs-bars' )[0].getContext( '2d' ),
        $dashChartLinesCnt = jQuery( '.js-chartjs-lines' )[0].getContext( '2d' );
    
    var $dashChartBarsData = {
		labels: ['周一', '周二', '周三', '周四', '周五', '周六', '周日'],
		datasets: [
			{
				label: '注册用户',
                borderWidth: 1,
                borderColor: 'rgba(0,0,0,0)',
				backgroundColor: 'rgba(51,202,185,0.5)',
                hoverBackgroundColor: "rgba(51,202,185,0.7)",
                hoverBorderColor: "rgba(0,0,0,0)",
				data: [2500, 1500, 1200, 3200, 4800, 3500, 1500]
			}
		]
	};
    var $dashChartLinesData = {
		labels: ['2003', '2004', '2005', '2006', '2007', '2008', '2009', '2010', '2011', '2012', '2013', '2014'],
		datasets: [
			{
				label: '交易资金',
				data: [20, 25, 40, 30, 45, 40, 55, 40, 48, 40, 42, 50],
				borderColor: '#358ed7',
				backgroundColor: 'rgba(53, 142, 215, 0.175)',
                borderWidth: 1,
                fill: false,
                lineTension: 0.5
			}
		]
	};
    
    new Chart($dashChartBarsCnt, {
        type: 'bar',
        data: $dashChartBarsData
    });
    
    var myLineChart = new Chart($dashChartLinesCnt, {
        type: 'line',
        data: $dashChartLinesData,
    });
});
</script>
</body>
</html>